﻿using System;
using System.Runtime.Serialization;

namespace Caffeine.Core.Metadata
{
    [DataContract]
    public class ModelPropertyBaseMetadata
    {
        [DataMember]
        public Int32 PropertyIndex
        {
            get;
            set;
        }

        [DataMember]
        public String Name
        {
            get;
            set;
        }

        [DataMember]
        public Boolean IsDirty
        {
            get;
            set;
        }

        [DataMember]
        public Boolean IsInvalid
        {
            get;
            set;
        }

        [DataMember]
        public ValidationErrorMetadata[] ValidationErrors
        {
            get;
            set;
        }
    }
}
